package com.xiaoyao.login.pojo;

import com.xiaoyao.common.pojo.User;
import lombok.Data;

import javax.persistence.MappedSuperclass;
import java.time.LocalDateTime;

/**
 * @Classname AuditableDomainObject
 * @Description TODO
 * @Date 2022/4/20 16:55
 * @Created by Lenovo
 */
@Data
@MappedSuperclass
public abstract class AuditableDomainObject extends DomainObject{

    private User createdBy;

    private String rnOfCreatedBy;

    private LocalDateTime createdTime;

    private User lastUpdatedBy;

    private String rnOfLastUpdatedBy;

    private LocalDateTime lastUpdatedTime;

    public String getRnOfCreatedBy() {
        return rnOfCreatedBy;
    }

    public void setRnOfCreatedBy(String rnOfCreatedBy) {
        this.rnOfCreatedBy = rnOfCreatedBy;
    }

    public LocalDateTime getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(LocalDateTime createdTime) {
        this.createdTime = createdTime;
    }

    public String getRnOfLastUpdatedBy() {
        return rnOfLastUpdatedBy;
    }

    public void setRnOfLastUpdatedBy(String rnOfLastUpdatedBy) {
        this.rnOfLastUpdatedBy = rnOfLastUpdatedBy;
    }

    public LocalDateTime getLastUpdatedTime() {
        return lastUpdatedTime;
    }

    public void setLastUpdatedTime(LocalDateTime lastUpdatedTime) {
        this.lastUpdatedTime = lastUpdatedTime;
    }

    public User getCreatedBy() {
        return createdBy;
    }

    public void setCreatedBy(User createdBy) {
        this.createdBy = createdBy;
    }

    public User getLastUpdatedBy() {
        return lastUpdatedBy;
    }

    public void setLastUpdatedBy(User lastUpdatedBy) {
        this.lastUpdatedBy = lastUpdatedBy;
    }
}
